//
//  ApplyInLicenseCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/8/29.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "ApplyInLicenseCell.h"

@implementation ApplyInLicenseCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.titleLabel = [[UILabel alloc] init];
        self.titleLabel.font = [UIFont fontWithName:@"PingFangSC-Medium" size:15];
        self.titleLabel.font = [UIFont systemFontOfSize:15];
        self.titleLabel.textColor = COLOR_HEX(0x121212);
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView);
            make.left.equalTo(self.contentView.mas_left).offset(scaleLeftAndRight(20));
            make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(100), scaleTopAndBottom(20)));
//            self.titleLabel.backgroundColor = [UIColor cyanColor];
        }];
        self.pictureView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.pictureView];
        [self.pictureView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self.contentView);
            make.size.mas_equalTo(CGSizeMake(scaleLeftAndRight(131.5), scaleTopAndBottom(77)));
            make.right.equalTo(self.contentView.mas_right).offset(scaleLeftAndRight(-81));
        }];
        self.pictureView.userInteractionEnabled = YES;
        self.pictureView.image = [UIImage imageNamed:@"中"];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
